﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace QaaSimulation.QSim.Ships
{
    class QEngineRoomBox : QShipBox
    {
        public QEngineRoomBox()
            : base()
        {
            m_Crew = -5;
            m_Energy = 20;
            m_Mass = 2.0f;
        }

        public override void Paint(System.Drawing.Graphics g)
        {
            g.FillRectangle(Brushes.DarkCyan, new Rectangle(0, 0, QModelBox.BOX_RELATION, QModelBox.BOX_RELATION));
            g.FillEllipse(Brushes.DarkMagenta, new Rectangle(4, 4, QModelBox.BOX_RELATION - 8, QModelBox.BOX_RELATION- 8));
            g.DrawEllipse(Pens.Black, new Rectangle(4, 4, QModelBox.BOX_RELATION - 8, QModelBox.BOX_RELATION - 8));
            this.PaintWalls(g);
        }

        public override bool CanBePlaced(QShipBox[] neighborhood)
        {
            return true;
        }
    }
}
